import request from '@/utils/request'

// 查询安装数据上传列表
export function listDeviceinstall(query) {
  return request({
    url: '/datastatistics/deviceinstall/list',
    method: 'get',
    params: query
  })
}

// 查询安装数据上传详细
export function getDeviceinstall(id) {
  return request({
    url: '/datastatistics/deviceinstall/' + id,
    method: 'get'
  })
}

// 新增安装数据上传
export function addDeviceinstall(data) {
  return request({
    url: '/datastatistics/deviceinstall',
    method: 'post',
    data: data
  })
}

// 修改安装数据上传
export function updateDeviceinstall(data) {
  return request({
    url: '/datastatistics/deviceinstall',
    method: 'put',
    data: data
  })
}

// 删除安装数据上传
export function delDeviceinstall(id) {
  return request({
    url: '/datastatistics/deviceinstall/' + id,
    method: 'delete'
  })
}
